package net.caixiaomi.info.ui.football;


import net.caixiaomi.info.base.quickadapter.BaseMultiItemQuickAdapter;
import net.caixiaomi.info.base.quickadapter.BaseViewHolder;
import net.caixiaomi.info.base.quickadapter.entity.MultiItemEntity;
import net.caixiaomi.info.interfaces.PlayFootballItemChangeListener;

import java.util.List;

/**
 * 足球确认订单
 */

public class FootballTakeOrderAdapter extends BaseMultiItemQuickAdapter<MultiItemEntity, BaseViewHolder> {

    private TakeOrderItemViewProxy mItemViewProxy;
    private int mMaxDan = 0;
    private PlayFootballItemChangeListener mListener;

    public FootballTakeOrderAdapter(int type, List<MultiItemEntity> data) {
        super(data);
        mItemViewProxy = FootballTakeOrderAdapterFactory.createItemViewProxy(type, this);
        mItemViewProxy.addItemType();
    }

    @Override
    protected void convert(BaseViewHolder helper, MultiItemEntity item) {
        mItemViewProxy.bindView(helper, item);
    }

    public int getMaxDan() {
        return mMaxDan;
    }

    public void setMaxDan(int max) {
        this.mMaxDan = max;
    }

    public PlayFootballItemChangeListener getListener() {
        return mListener;
    }

    public void setListener(PlayFootballItemChangeListener listener) {
        this.mListener = listener;
    }
}
